<script setup lang="ts">
import { ref } from 'vue';
/**
 * vue3 新语法糖
 */
const greeting='hello vite'
const counter=ref(0);

</script>

<template>
    <slot></slot>
     <button @click="counter++">counter:{{counter}}</button>
    <div class="greet">{{greeting}}</div>
</template>

<style scoped>
    .greet{
        color: green;
    }
</style>